#pragma once
#include "../StdAfx.h"

#define lengthof2(x) (sizeof(x)/sizeof(*x))

class CDialogBuilderEx:public CDialogBuilder{
public:
	virtual CControlUI* _Parse(CMarkupNode* parent, CControlUI* pParent = NULL, CPaintManagerUI* pManager = NULL);
};

class CMainPage
	:public CContainerUI
{
public:
	CMainPage(HWND hwnd,CPaintManagerUI& paint_manager_);
	~CMainPage(void);
	LPCTSTR GetWindowClassName() const { return _T("CMainPage"); };

	virtual void Init();

	virtual LRESULT OnSysCommand(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);

protected:
	HWND m_hWnd;

};

